package thread;

public class Lambda {
    public static void main(String[] args) {
        AA aa=new AA();
        aa.test();
        A a=() -> {System.out.println("test!!!");};
        a.test();
        A a1=new A() {
            @Override
            public void test() {
                System.out.println("");
            }
        };
    }
}


interface  A{
    public void test();
}
class AA implements A{

    @Override
    public void test() {
        System.out.println("test!!");
    }
}